package qeb.handheldmedical.instruction;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.LinearLayout;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;

import qeb.handheldmedical.R;

/**
 *
 * @author sugar
 * @date 2019/1/23
 */

public class LogListActivity extends Activity{

    public static List<String> logList = new ArrayList<>();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log_list);
        LinearLayout viewById = findViewById(R.id.llLog);
        for (String s : logList) {
            TextView textView = new TextView(this);
            textView.setText(s+"\n");
            viewById.addView(textView);
        }
    }
}
